import { Tween } from 'cc';
import { Color } from 'cc';
import { Sprite } from 'cc';
import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('Test')
export class Test extends Component {
    start() {
      let sprite = this.node.getComponent(Sprite)
      new Tween(sprite).to(1,{color:new Color(this.node.color.r,this.node.color.g,this.node.color.b,0)}).start()
    }

    update(deltaTime: number) {
        
    }
}

